﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ChargeBuff : Buff
{
    public float rate = 2f;

    public ChargeBuff()
    {
        buffName = "Charge";
        order = 1;
        duration = 1;
    }

    public override void BuffStart()
    {
        base.BuffStart();
        owner.attackRate *= rate;
        
    }

    public override void BuffEffect()
    {
        base.BuffEffect();
        duration += 1;
    }

    public override void BuffEnd()
    {
        base.BuffEnd();
        owner.attackRate /= rate;
    }
}
